WPF and Silverlight Edition Basic Library > FilePicker > FilePicker Elements > Removing a Watermark |
The watermark appears in the text area of the C1FilePicker control by default and can give directions or suggestions for users at run time. You can customize the watermark text by setting the Watermark property to the value you want to appear.
If you do not want a watermark to appear, you can set the Watermark property to a blank value, for example see the steps below.
To set the Watermark property add Watermark="" to the <c1:C1FilePicker> tag so that it appears similar to the following:
XAML |
Copy Code
|
---|---|
<c1:C1FilePicker HorizontalAlignment="Left" Margin="112,36,0,0" Name="C1FilePicker1" VerticalAlignment="Top" Width="161" Watermark="" /> |
To set the Watermark property, add the following code to your project:
Visual Basic |
Copy Code
|
---|---|
Me.C1FilePicker1.Watermark = ""
|
C# |
Copy Code
|
---|---|
this.c1FilePicker1.Watermark = ""; |
To set the Watermark property, complete the following steps:
This will set the Watermark property to a blank value.
Run the application, and observe that the caption bar of the C1FilePicker control will appear without the watermark: